<template>
  <div class="header">
    <div class="left">
      <slot name="left"></slot>
    </div>
    <div class="title">
      {{ title }}
      <slot name="title"></slot>
    </div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Header',
  props: {
    title: {
      type: String,
      default: ''
    }
  }
}
</script>

<style scoped>

.header {
  width: 100%;
  height: 44px;
  background: #3288FF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
}

.left {
  min-width: 1px;
  color: #FFFFFF;
  font-family: OPPOSans;
  font-weight: medium;
  font-size: 17px;
  letter-spacing: 0px;
}

.title {
  color: #FFFFFF;
  font-family: OPPOSans;
  font-weight: medium;
  font-size: 17px;
  letter-spacing: 0px;
}

.right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 1px;
}


.right > img {
  width: 21px;
  height: 21px;
}


</style>
